package com.aliang.frame.service;

import com.github.pagehelper.PageInfo;
import com.aliang.frame.domain.Role;
import com.aliang.frame.domain.User;
import com.aliang.frame.viewmodel.admin.role.RolePageRequestVM;
import com.aliang.frame.viewmodel.admin.role.RolePageResponseVM;
import com.aliang.frame.viewmodel.admin.role.RoleRequestVM;

import java.util.List;

public interface RoleService extends BaseService<Role> {
    PageInfo<Role> page(RolePageRequestVM model);

    void edit(RoleRequestVM model, User currentUser);

    RolePageResponseVM roleToVM(Integer id);

    List<Role> selAllRoleName();

}
